This function will attempt to convert a given value into a 64bit integer, where the value must be either a real, a string, an int64, an int32, or a ptr. Anything else will cause the game to crash with an error message. You can check to see if a variable holds an int64 using the function is_int64.
int64(val);
Argument | Description |
---|---|
val | The value to convert. |
64bit integer
steam_handle = int64(global.fileReadString);
The above code converts the value held in the global variable to a 64bit integer.